$OpenBSD: patch-mk_cmake_Modules_FindLUA_cmake,v 1.2 2015/04/06 12:49:52 stsp Exp $
--- mk/cmake/Modules/FindLUA.cmake.orig	Mon Mar  9 00:09:10 2015
+++ mk/cmake/Modules/FindLUA.cmake	Mon Apr  6 10:37:53 2015
@@ -48,6 +48,8 @@ FIND_PATH(LUA_INCLUDE_DIR NAMES lua.hpp 
 		PATHS 	${LUA_FIND_INCLUDE_PATHS}
 		IF(FreeBSD)
                 	SET(PATHS "/usr/local/include/lua51")
+		IF(OpenBSD)
+                	SET(PATHS "${TRUEPREFIX}/include/lua-${MODLUA_VERSION}")
                 ENDIF()
 		$ENV{LUA_HOME}
 		)
@@ -57,6 +59,8 @@ IF (LUA_STATIC AND NOT LUA_LIBRARIES)
 		PATHS 
                 IF(FreeBSD)
                        SET(PATHS "/usr/local/lib/lua51")
+		IF(OpenBSD)
+                	SET(PATHS "${TRUEPREFIX}/lib/lua/${MODLUA_VERSION}")
                 ENDIF()
                 $ENV{LUA_HOME})
 
@@ -65,6 +69,8 @@ ELSE()
 		PATHS 
                 IF(FreeBSD)
                        SET(PATHS "/usr/local/lib/lua51")
+		IF(OpenBSD)
+                	SET(PATHS "${TRUEPREFIX}/lib/lua/${MODLUA_VERSION}")
                 ENDIF()
                 $ENV{LUA_HOME})
 ENDIF()
